home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xarchie-2.0.9 / status.c < prev    next >
C/C++ Source or Header  |  1995-06-18  |  584b  |  43 lines

  1. /*
  2.  * status.c : Display-independent status indication routines
  3.  *
  4.  * George Ferguson, ferguson@cs.rochester.edu, 23 Apr 1993.
  5.  */
  6.  
  7. #include <stdio.h>
  8. extern void setStatusText();        /* display.c */
  9.  
  10. /*
  11.  * Functions defined here:
  12.  */
  13. void status0(), status1(), status2();
  14.  
  15. /*    -    -    -    -    -    -    -    -    */
  16.  
  17. void
  18. status0(str)
  19. char *str;
  20. {
  21.     setStatusText(str);
  22. }
  23.  
  24. void
  25. status1(fmt,arg)
  26. char *fmt,*arg;
  27. {
  28.     char buf[256];
  29.  
  30.     sprintf(buf,fmt,arg);
  31.     status0(buf);
  32. }
  33.  
  34. void
  35. status2(fmt,arg1,arg2)
  36. char *fmt,*arg1,*arg2;
  37. {
  38.     char buf[256];
  39.  
  40.     sprintf(buf,fmt,arg1,arg2);
  41.     status0(buf);
  42. }
  43.